//
//  ZGLNaviView.m
//  Faker
//
//  Created by dllo on 15/11/8.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "ZGLNaviView.h"

@interface ZGLNaviView ()



@end

@implementation ZGLNaviView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backButton = [UIButton buttonWithType:UIButtonTypeCustom];
        self.shareButton = [UIButton buttonWithType:UIButtonTypeCustom];
        self.downButton = [UIButton buttonWithType:UIButtonTypeCustom];
        [self addSubview:_backButton];
        [self addSubview:_downButton];
        [self addSubview:_shareButton];
    }
    return self;
}
- (void)layoutSubviews {
    [super layoutSubviews];
    [_backButton setFrame:CGRectMake(ScaleX * 20, ScaleY * 28, ScaleX * 35, ScaleY * 35)];
    [_backButton setImage:[UIImage imageNamed:@"zaihufanhui"] forState:(UIControlStateNormal)];
    [_shareButton setFrame:CGRectMake(ScaleX * 275, ScaleY *28, ScaleX * 35, ScaleY * 35)];
    [_shareButton setImage:[UIImage imageNamed:@"fenxiang"] forState:(UIControlStateNormal)];
    [_downButton setFrame:CGRectMake(ScaleX * 325, ScaleY *28, ScaleX * 35, ScaleY * 35)];
    
}


@end
